package com.gsezone.s12.util;

import java.util.Arrays;

public class Container {

	private Object[] objects = new Object[0];

	public void add(Object object) {
		setObjects(Arrays.copyOf(getObjects(), getObjects().length + 1));
		getObjects()[getObjects().length - 1] = object;
	}

	public Object[] getObjects() {
		return objects;
	}

	public void setObjects(Object[] objects) {
		this.objects = objects;
	}

	@Override
	public String toString() {
		return Arrays.toString(getObjects());
	}

}
